#import <UIKit/UIWindow.h>
#import <UIKit/UIImageView.h>
#import "Config.h"

#define BUTTON_WIDTH 64
#define BUTTON_HEIGHT 24

@interface SnapButton : UIWindow
{
	id  mParent;
    UIImageView  * viewM;
    CGPoint posM;
	int _x;
	int _y;
	int _initx;
	int _inity;
	int _basex;
	int _basey;
	bool m_moving;
    NSTimer *timerM;
    float tickIntervalM;
    NSDate *lastTimeM;
	Config* mConfig;

}

- (id) tick:(NSTimer*)timer;
- (id) StartTimer;
- (id) StopTimer;
- (void) Reset;



- (id) initWithParent:(id)parent;
- (BOOL)ignoresMouseEvents;
- (id) reposition;

@end
